using UnityEngine;
using System.Collections;

public class ReplaceBG : MonoBehaviour {
	
	public Texture2D baliqiao;

	// Use this for initialization
	void Start () {
		if(SceneManagement.GetInstance().preScene == "EncounterA") {
			Material material = renderer.material;
			material.mainTexture = (Texture)baliqiao;
		}
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
